package com.three.dao;

import com.three.domain.Subjects;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface SubjectsDao {
    public int pageCountSubjects(@Param("keyword") String keyword);
    public List<Subjects> subjectsList(@Param("pageIndex") Integer pageIndex, @Param("pageSize") Integer pageSize, @Param("keyword") String keyword);
    public int addSubjects(Subjects subjects);
    public int updateSubjects(Subjects subjects);
    public int deleteSubjects(Integer subject_id);
}
